import { request } from '@/utils/request';

import CRUD from '@/utils/request/CRUD';

// 单品合同收款记录CRUD
export const payLogContractProductSingleCRUD = CRUD('/system/single-product-contract-pay-log');

// 收款记录-确认收款
export function payLogContractProductConfirm(data: Record<string, any>) {
  return request.put({
    url: '/system/single-product-contract-pay-log/confirm',
    data,
  });
}

// 获得单品订单收款列表
export function getSingleProductCollection(params: Record<string, any>) {
  return request.get({
    url: '/system/single-product-contract/collection-list',
    params,
  });
}
